<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3c.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<f:view>
	<h:head>
		<link type="text/css" rel="stylesheet" href="themes/bluesky/skin.css" />
		<link type="text/css" rel="stylesheet"
			href="resources/css/wienerhelden.css" />
	</h:head>
	<h:body>
		<ui:composition template="template.xhtml">
			<ui:define name="content">

				<script src="http://maps.google.com/maps/api/js?sensor=false"
					type="text/javascript" />
				<script type="text/javascript"
					src="../resources/javascript/mapCodeSovtivityPoint.js" />
				<div style="overflow: hidden;">


					<h1>
						<h:outputText value="Renter Information" />
					</h1>

					<h2 class="name">
						<h:outputText value="#{informRenterController.customer.firstName}" />
						<h:outputText value="&#160;" />
						<h:outputText value="#{informRenterController.customer.lastName}" />
					</h2>

					<dl>
						<dt>E-Mail:</dt>
						<dd>
							<h:outputText
								value="#{informRenterController.customer.mailAddress}" />
						</dd>
						<dt>Telephone No.:</dt>
						<dd>
							<h:outputText value="#{informRenterController.customer.telNo}" />
						</dd>
						<dt>Cases:</dt>
						<dd>
							<p:dataList value="#{informRenterController.historicTickets}"
								var="ticket" type="ordered"> #{ticket.id}: #{ticket.description}
								</p:dataList>
						</dd>
					</dl>

					<div class="formBlock">
						<h:form id="renterInformation">
							<fieldset>
								<legend>
									<h:outputText value="Notes:" />
								</legend>


								<div>
									<h:inputTextarea cols="30" rows="10"
										value="#{informRenterController.renterInformation}" />
								</div>
								<div style="clear: both;">
									<p:commandButton id="submitData"
										value="Inform Renter by E-Mail" icon="ui-icon-check"
										action="#{informRenterController.finishInformRenterWithMail}" />
									<p:commandButton id="submitDataWithMail"
										value="Renter Informed" icon="ui-icon-check"
										action="#{informRenterController.finishInformRenter}" />
								</div>
							</fieldset>
						</h:form>
					</div>
				</div>
			</ui:define>
		</ui:composition>
	</h:body>
</f:view>
</html>
